<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div class='ui'>
    <table class='table_list'>
        <tr>
			<th>序号</th>
			<th>品名</th>
			<th>年份</th>
			<th>批次</th>
			<th>类型</th>
			<th>数量</th>
			<th>价格(元)</th>
        </tr>
        	<c:forEach items="${productList}" var="info">
        	<tr>
        		<input type="hidden" name="product_id" value="${info.product_id }">
        		<td title='index'>${info.index }</td>
				<td title='product_name'>${info.product_name }</td>
				<td title='productionyear'>${info.productionyear }</td>
				<td title='batch'>${info.batch }</td>
				<td title='unit'>${info.unit }</td>
				<td title='num'>${info.num }</td>
				<td title='price'>${info.price }</td>
        	</tr>
        	</c:forEach>
    </table>
    <div class="fr">合计金额：<span id="sum_price">${price.sum_price }</span>元
       	<br>收款比例：
       	<span>${price.sum_rate }</span>
       	<br>
       	实际金额：<span id="real_price">${price.real_price }</span>元</div>
   </div>
</div>